package legumes.client.services.callbacks;

import legumes.client.services.LegumesServicesHelper;
import legumes.client.services.util.rpc.SequencableRPCCall;

public class GenerateOrdersReportCallback extends SequencableRPCCall<String> {

	private String vpathReport;

	private long sellSessionId;

	public GenerateOrdersReportCallback(long sellSessionId__) {
		sellSessionId = sellSessionId__;
	}

	@Override
	protected void doCall() {
		LegumesServicesHelper.LEGUMES_SERVICES.generateOrdersReport(
				sellSessionId, this);
	}

	@Override
	public void onSuccess(String vpathReport_) {
		vpathReport = vpathReport_;
		callNext();
	}

	public String getVpathReport() {
		return vpathReport;
	}

}